
package todolist.personalization;

/**
 * List of all error messages to be presented to user.
 * @author Ivan
 */
public class ErrorMessages {

	// parser
	public static final String ERR_INVALID_COMMAND_NAME = "Invalid Command.";
	public static final String ERR_INVALID_COMMAND_PARSING = "Error parsing command.";
	public static final String ERR_INVALID_EDIT_FIELD = "Invalid Property of Task to edit.";
	public static final String ERR_INVALID_SORT_FIELD = "Invalid sort criteria.";
	public static final String ERR_INVALID_SORT_DIRECTION = "Invalid sort direction.";

	// Task properties
	public static final String ERR_INVALID_TASK_ID = "Task ID not found.";
	public static final String ERR_INVALID_TASK_NAME = "Invalid Task Name.";
	public static final String ERR_INVALID_DATE_PARSING = "Error parsing Date/Time.";
	public static final String ERR_INVALID_PRIORITY = "Invalid Priority Type.";
	public static final String ERR_INVALID_COMMENTS = "Invalid Comments.";
	public static final String ERR_INVALID_REMINDER = "Invalid Reminder offset.";

	// Date/Time
	public static final String ERR_DUPLICATE_START_DATE = "Start Date is repeated.";
	public static final String ERR_DUPLICATE_END_DATE = "End Date is repeated.";
	public static final String ERR_MISSING_START_DATE = "Start Date is missing.";
	public static final String ERR_MISSING_END_DATE = "End Date is missing.";
	public static final String ERR_DATE_SEQUENCE = "Start Date is later than End Date.";
	
	// Config File
	public static final String ERR_CONFIG_FILE_NOT_FOUND = "config.props Configuration file not found.";
	public static final String ERR_CONFIG_FILE_UNABLE_TO_OPEN = "Unable to open config.props Configuration file.";
	public static final String ERR_CONFIG_FILE_MISSING_PROPERTIES = "Missing properties in config.props Configuration file.";
	
	// Email
	public static final String ERR_ENCRYPT_FAILED = "Failed to encrypt data."; // currently unused
	public static final String ERR_DECRYPT_FAILED = "Failed to decrypt data.";
	public static final String ERR_EMAIL_FAILED_TO_SEND = "Failed to send Daily Tasks overview email.";
	
	// Tray Icon
	public static final String ERR_TRAY_ICON_NOT_SUPPORTED = "Operating System does not support tray icon.";
	public static final String ERR_TRAY_ICON_FAILED_TO_ADD = "Failed to add Tray icon to System Tray.";
	
	// Export/Import Task List
	public static final String ERR_EXPORT_FAILED_TO_INITIALIZE_EXPORT = "Failed to initialize file export for todolist.xml Task List.";
	public static final String ERR_EXPORT_FAILED_TO_PARSE_FILE = "Unable to parse todolist.xml Task List. It may be corrupted.";
	public static final String ERR_EXPORT_FAILED = "Unable to write to todolist.xml Task List.";
	public static final String ERR_IMPORT_FILE_NOT_FOUND = "todolist.xml Task List not found.";
	public static final String ERR_IMPORT_FAILED = "Error encountered while importing todolist.xml Task List from file.";
}
